package org.ruanjj.multipleimplementation;

public class Main {
    public static void main(String[] args) {
        Son1 s = new Son1("徐奥",12);
        System.out.println(s.getName());

        Father1 father1 = new Son1("理想",11);
        System.out.println(father1.name);

        Father1 father11 = new Father1("大方",35);
        System.out.println(father11.name);
    }
}
